<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"  isELIgnored="false"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib prefix="c"      uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt"    uri="http://java.sun.com/jsp/jstl/fmt" %>
<%--@ 
taglib uri="http://www.opensymphony.com/oscache"  prefix="oscache"--%>
<%
	response.setDateHeader("Expires", 0);
	response.setHeader("Cache-Control", "no-cache");
	response.setHeader("Pragma", "no-cache");
%><%
	String prjpath = request.getContextPath();//项目根路径
	request.setAttribute("prjpath", prjpath);
	
%>
<script type="text/javascript">
	var prjpath = "${prjpath}";  // 应用程序的根路径 */
</script>
<%-- 通用的js与css --%>
<html>
  <head>
    <!-- 模板页面 -->
    
    <title>用户请假单集合页面</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
  </head>
  
  <body>
  ${userSession.user_name }
             <input type="button" name="flush" id="flush" value="返回"
     onclick="javascript:window.navigate('login.jsp');"/><br/>

	  	审批员工请假单：<br/>
	  	<table border="1">
	     	<tr>
	     		<td>编号</td>
	     		<td>名字</td>
	     		<td>原因</td>
	     		<td>申请时间</td>
	     		<td>天数</td>
	     		<td>状态</td>
	     		<td>相关操作</td>
	     	</tr>
	     	<c:forEach items="${usertasks}" var="usertask">	
	     		<tr>
	     		<td>${usertask.taskName }</td>
	     		<td>${usertask.taskID }</td>
	     		<td>${usertask.taskCreateTime }</td>
	     		<td>${usertask.taskCreateTime }</td>
	     		<td>${usertask.taskCreateTime }</td>
	     		<td>${usertask.taskCreateTime }</td>
	     		<td>
	     			<td>
	     				<a href="activeManager.do?doMethod=operateLeaveAction&taskId=${usertask.taskID }&operate=1">同意</a>
	     				<a href="activeManager.do?doMethod=operateLeaveAction&taskId=${usertask.taskID }&operate=0">不同意</a>
	     			</td>
	     	</tr>
	     	</c:forEach>
	     </table>
  </body>
</html>
